﻿/********************************************************************************/
// <copyright file="IAdminRepository.cs" company="Asia E-Business Solutions">
//     Copyright © 2012. All right reserved
// </copyright>
// <history>
//     <change who="Phuoc Le" date="24/12/2012 3:00:05 PM">Created</change>
// </history>
/********************************************************************************/

using System;
using System.Collections.Generic;
using JLL.China.Infrastructure.RepositoryFramework;
using JLL.China.Model.DTO;

namespace JLL.China.Infrastructure.Repositories.Admin
{
    public interface IAdminRepository : IRepository<Model.Admin, Guid>
    {
        Model.Admin FindByUsername(string username);
        IList<Model.Module> FindAllModules();
        Model.Module FindModuleById(int key);
        IList<Model.Admin> Search(AdminSearchCriteria searchCriteria);
        int CountAdmins(AdminSearchCriteria searchCriteria);
        bool ValidateLogin(string username, string password);
        void RemoveSeleted(string selectedIDs);
        void ChangeStatusSeleted(string selectedIDs,bool status);
    }
}
